package com.hopes.bizz.close.common.api.feign;

import com.hopes.bizz.close.visitor.vo.ClosedHazardCarApplyVO;
import com.hopes.bizz.common.core.constant.ServiceNameConstants;
import com.hopes.boss.common.core.constant.SecurityConstants;
import com.hopes.boss.common.core.util.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestHeader;

/**
 * @author yumr
 * @ProjectName bizz
 * @Description 危险品预约服务
 * @time 2024/2/26 13:39
 */
@FeignClient(contextId = "remoteClosedHazardApplyService", value = ServiceNameConstants.PARK_CLOSE_SERVER)
public interface RemoteClosedHazardApplyService {


    /**
     * 根据预约单查询危险品预约信息
     * @param billNo    预约单
     * @param from      是否内部调用
     * @return          结果
     */
    @GetMapping("/hazardapply/query/{billNo}")
    R<ClosedHazardCarApplyVO> queryHazardApplyByBillNo(@PathVariable("billNo") String billNo, @RequestHeader(SecurityConstants.FROM) String from);

}
